package com.tkjt.pms.modules.kpiAudit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tkjt.pms.common.entity.*;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@Repository
public interface KpiAuditMapper extends BaseMapper<TkIndexValueAudit> {
    String getTsDepartByOrgCode(@Param("orgCode") String orgCode);
    List<String> getIndexValueCodeStrings(@Param("indexGroup") String indexGroup);

    List<TkIndexInfo> getSingleList(@Param("indexGroup") String indexGroup);

    List<TkIndexValue> getTkIndexValueByIndexGroup(Map<String,Object> map);

    TkIndexInfo getTkIndexInfoByIndexValueCode(@Param("indexValueCode") String indexValueCode);

    List<TkIndexValueAudit> getTkIndexValueAuditByYM(Map<String,String> map);

//    List<SysType> getTsTypeByCode(@Param("typegroupcode") String typegroupcode);

    TkIndexValueAudit getTkIndexValueAuditById(@Param("id")String id);

    List<TkIndexValueMirror> getTkIndexValueMirrorByMirrorCode(@Param("mirrorCode")String mirrorCode);

    void deletTkIndexValueMirrorByMirrorCode(@Param("mirrorCode")String mirrorCode);

    List<TkIndexValue> getTkIndexValueAllList();

    void insertTkIndexValueMirror(TkIndexValueMirror tkIndexValueMirror);

    List<TkIndexValueCommentsMirror> deleteCommentsMirroListByParam(Map<String,Object> map);

    List<TkIndexValueComments> selectCommentsListByDataType(Map<String,Object> map);
}
